package design.Bridge;

/**
 * Created by looper on 2017/8/16.
 */
public class BridgeTest {
  public static void main(String[] args) {
    Bridge mysqlBridge = new MyBridge();

    Driver mysqlDriver = new MysqlDriver();
    mysqlBridge.setDriver(mysqlDriver);
    mysqlBridge.connect();

    Driver sqlServerDriver = new SqlServerDriver();
    mysqlBridge.setDriver(sqlServerDriver);
    mysqlBridge.connect();

  }
}
